﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace EFong.Contract
{
    [DataContract]
    public class RTrainTicketReturn
    {
        private string _departLocation = string.Empty;
        [DataMember]
        public string DepartLocation
        {
            get { return _departLocation; }
            set { _departLocation = value; }
        }

        private string _destination = string.Empty;
        [DataMember]
        public string Destination
        {
            get { return _destination; }
            set { _destination = value; }
        }

        public string 行程
        {
            get { return string.Format("{0} - {1}", DepartLocation, Destination); }
        }

        private int _qty;
        [DataMember]
        public int Qty
        {
            get { return _qty; }
            set { _qty = value; }
        }

        private DateTime _orderDate = DateTime.Now;
        [DataMember]
        public DateTime OrderDate
        {
            get { return _orderDate; }
            set { _orderDate = value; }
        }
    }
}
